package com.ruoyi.baseData.controller;


import com.ruoyi.baseData.domain.dto.SerialNumberDto;
import com.ruoyi.baseData.domain.dto.ShiftDto;
import com.ruoyi.baseData.service.ProcessService;
import com.ruoyi.baseData.service.SerialNumberService;
import com.ruoyi.common.core.domain.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/serialNumber")
public class SerialNumberController {
    @Autowired
    SerialNumberService serialNumberService;


    @PostMapping("/getShiftByPage")
    public R export(@RequestBody SerialNumberDto serialNumberDto)
    {
        return R.ok(serialNumberService.getNextSnByCode(serialNumberDto.getCode()));
    }
}
